﻿@if (Session["user"] != null)
{
    thailandProject.Models.USER user = (thailandProject.Models.USER)Session["user"];
    <text>Welcome <strong>@user.userFirstName</strong>!
    @*@Html.ActionLink("Log Off", "LogOff", "Account", new { @class = "login_link" })</text>*@
    @Html.ActionLink("Log Off", "LogOff", "Account", new { url = Request.Url.AbsoluteUri }, null)</text>
}
else
{
    @*@:@Html.ActionLink("Login", "LogOn", "Account", new { @class = "login_link" })*@
    @Html.ActionLink("Login", "LogOn", "Account", new { url = Request.Url.AbsoluteUri }, null)
    
}

@if (Session["ContextClient"] != null)
{
    
    thailandProject.Models.CLIENT client = (thailandProject.Models.CLIENT)Session["ContextClient"];
    string name = client.clientFirstName + " " + (String.IsNullOrEmpty(client.clientLastName) ? "" : client.clientLastName.Substring(0, 1) + ".") + " ";
    
    <br />
    <br />
    <div id = "contextClient">
    Current Client: <strong>@name</strong>
    
    @*@Html.ActionLink("[X]", "RemoveContextClient", "Clients", new { url = Request.Url.AbsoluteUri }, null)*@
    <a href = "@Url.Action("RemoveContextClient", "Clients", new { url = Request.Url.AbsoluteUri }, null)"><img id="close" src = "/images/close.png" /></a>
    </div>
    
}

@*@if (Session["userPerm"] == "1")
{
    
}*@
